package com.ai.planttrees.controller;

import com.ai.planttrees.dao.UserTreeMapper;
import com.ai.planttrees.model.UserTree;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Date:  2018/4/24
 * Time:  9:29
 * Email: siy@hmgsoft.com
 * Created by siy
 */
@RestController
public class IndexController {

    @Resource
    private UserTreeMapper userTreeMapper;

    @PostMapping("/test")
    public String home(){
        UserTree qu = new UserTree();
        qu.setPhone("nUonxlxXm673k1TlNdZxawDzlN1/XLD7");
        UserTree user = userTreeMapper.selectOne(qu);
        System.out.println(user);
        return "Test";
    }

}
